Text Sample Description
The time code sample description contains information that defines how to interpret time code media data. This sample description is based on the standard sample description header, as described in
"Sample Table Atoms"
.
The Data format field in the sample description is always set to
'text'
.
The text media handler also adds some of its own fields to the sample description.
-
Display flags
-
A 32-bit integer containing flags that describe how the text should be drawn. The following flags are defined.
-
Don't auto scale
-
Controls text scaling. If this flag is set to 1, the text media handler reflows the text instead of scaling when the track is scaled. This flag's value is 0x0002.
-
Use movie background color
-
Controls background color. If this flag is set to 1, the text media handler ignores the Background color field in the text sample description and uses the movie's background color instead. This flag's value is 0x0008.
-
Scroll in
-
Controls text scrolling. If this flag is set to 1, the text media handler scrolls the text in until the last of the text is in view. This flag's value is 0x0020.
-
Scroll out
-
Controls text scrolling. If this flag is set to 1, the text media handler scrolls the text out until the last of the text is gone. This flag's value is 0x0040.
-
Horizontal scroll
-
Controls text scrolling. If this flag is set to 1, the text media handler scrolls the text horizontally; otherwise, it scrolls the text vertically. This flag's value is 0x0080.
-
Reverse scroll
-
Controls text scrolling. If this flag is set to 1, the text media handler scrolls down (if scrolling vertically) or backward (if scrolling horizontally; horizontal scrolling also depends upon text justification). This flag's value is 0x0100.
-
Continuous scroll
-
Controls text scrolling. If this flag is set to 1, the text media handler displays new samples by scrolling out the old ones. This flag's value is 0x0200.
-
Drop shadow
-
Controls drop shadow. If this flag is set to1, the text media handler displays the text with a drop shadow. This flag's value is 0x1000.
-
Anti-alias
-
Controls anti-aliasing. If this flag is set to 1, the text media handler uses anti-aliasing when drawing text. This flag's value is 0x2000.
-
Key text
-
Controls background color. If this flag is set to 1, the text media handler does not display the background color, so that the text overlay background tracks. This flag's value is 0x4000.
-
Text justification
-
A 32-bit integer that indicates how the text should be aligned. Set this field to 0 for left-justified text, to 1 for centered text, and to -1 for right-justified text.
-
Background color
-
A 48-bit RGB color that specifies the text's background color.
-
Default text box
-
A 64-bit rectangle that specifies an area to receive text (top, left, bottom, right). Typically this field is set to all zeros.
-
Reserved
-
A 64-bit value that must be set to 0.
-
Font number
-
A 16-bit value that must be set to 0.
-
Font face
-
A 16-bit integer that indicates the font's style. Set this field to 0 for normal text. You can enable other style options by using one or more of the following bit masks:
-
0x0001
-
Bold
-
0x0002
-
Italic
-
0x0004
-
Underline
-
0x0008
-
Outline
-
0x0010
-
Shadow
-
0x0020
-
Condense
-
0x0040
-
Extend
-
Reserved
-
An 8-bit value that must be set to 0.
-
Reserved
-
A 16-bit value that must be set to 0.
-
Foreground color
-
A 48-bit RGB color that specifies the text's foreground color.
-
Text name
-
A Pascal string specifying the name of the font to use to display the text.
© 1997 Apple Computer, Inc.| Previous | Chapter contents | Chapter top | Next |